<template>
    <fieldset>
        <legend>详情页</legend>
        <h2>{{ add.productInfo || add.productInfo1 || add.productInfo2}}</h2>
    </fieldset>
</template>
<script>
import axios from "axios"
export default {
    data(){
        return {
            add:{}
        }
    },
    mounted(){
        let arr = this.$route.query.name
        console.log(arr)
        axios.get(`http://chst.vip:1234/api/getmoneyctrlproduct?productid=${arr}`)
        .then(res => {
            // console.log(res)
            // console.log(this.$router)
            console.log(res.data.result[0])
            this.add = res.data.result[0]
        })
    }
}
</script>